package com.lecloud.model;

import java.util.HashMap;
import java.util.Map;

/**
 * 除了id，其余为创建直播间必须属性
 * 
 * @author zhagz
 * 
 */
public class ActivityInfo {

	/**
	 * 直播活动ID
	 */
	private String activityId;
	/**
	 * 直播活动名称(200个字符以内)
	 */
	private String activityName;
	/**
	 * 活动分类，参见《直播活动创建接口》文档
	 */
	private String activityCategory;
	/**
	 * 开始时间，从1970开始的毫秒数
	 */
	private String startTime;
	/**
	 * 结束时间，从1970开始的毫秒数
	 */
	private String endTime;
	/**
	 * 活动封面地址
	 */
	private String coverImgUrl;
	/**
	 * 活动描述（255个字符以内）
	 */
	private String description;
	/**
	 * 播放模式：0：实时直播；1：流畅直播
	 */
	private int playMode;
	/**
	 * 机位数量，范围为：1，2，3，4
	 */
	private int liveNum;
	/**
	 * 流的码率类型，逗号分隔。取值范围：13 流畅； 16 高清；19 超清； 25 1080P；99 原画
	 */
	private String codeRateTypes;
	/**
	 * 是否支持全程录制 0：否 1：是
	 */
	private int needRecord;
	/**
	 * 是否支持时移 0：否 1：是
	 */
	private int needTimeShift;
	/**
	 * 是否支持全景观看 0：否 1：是
	 */
	private int needFullView;

	public ActivityInfo() {
	}

	public ActivityInfo(String activityId, String activityName, String activityCategory, String startTime,
			String endTime, String coverImgUrl, String description, int liveNum, String codeRateTypes, int needRecord,
			int needTimeShift, int needFullView, int playMode) {
		super();
		this.activityId = activityId;
		this.activityName = activityName;
		this.activityCategory = activityCategory;
		this.startTime = startTime;
		this.endTime = endTime;
		this.coverImgUrl = coverImgUrl;
		this.description = description;
		this.liveNum = liveNum;
		this.codeRateTypes = codeRateTypes;
		this.needRecord = needRecord;
		this.needTimeShift = needTimeShift;
		this.needFullView = needFullView;
		this.playMode = playMode;
	}

	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	public String getActivityCategory() {
		return activityCategory;
	}

	public void setActivityCategory(String activityCategory) {
		this.activityCategory = activityCategory;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getCoverImgUrl() {
		return coverImgUrl;
	}

	public void setCoverImgUrl(String coverImgUrl) {
		this.coverImgUrl = coverImgUrl;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getLiveNum() {
		return liveNum;
	}

	public void setLiveNum(int liveNum) {
		this.liveNum = liveNum;
	}

	public String getCodeRateTypes() {
		return codeRateTypes;
	}

	public void setCodeRateTypes(String codeRateTypes) {
		this.codeRateTypes = codeRateTypes;
	}

	public int getNeedRecord() {
		return needRecord;
	}

	public void setNeedRecord(int needRecord) {
		this.needRecord = needRecord;
	}

	public int getNeedTimeShift() {
		return needTimeShift;
	}

	public void setNeedTimeShift(int needTimeShift) {
		this.needTimeShift = needTimeShift;
	}

	public int getNeedFullView() {
		return needFullView;
	}

	public void setNeedFullView(int needFullView) {
		this.needFullView = needFullView;
	}

	public int getPlayMode() {
		return playMode;
	}

	public void setPlayMode(int playMode) {
		this.playMode = playMode;
	}

	public Map<String, String> toMap() {
		Map<String, String> map = new HashMap<String, String>();
		map.put("activityId", this.activityId);
		map.put("activityName", this.activityName);
		map.put("activityCategory", this.activityCategory);
		map.put("startTime", this.startTime);
		map.put("endTime", this.endTime);
		map.put("coverImgUrl", this.coverImgUrl);
		map.put("description", this.description);
		map.put("liveNum", this.liveNum + "");
		map.put("codeRateTypes", this.codeRateTypes + "");
		map.put("needRecord", this.needRecord + "");
		map.put("needTimeShift", this.needTimeShift + "");
		map.put("needFullView", this.needFullView + "");
		map.put("playMode", this.playMode + "");

		return map;
	}
}
